package com.guyu.plugin.log.enums;


import com.guyu.common.core.enums.able.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 业务类型
 */
@Getter
@AllArgsConstructor
public enum BusinessType implements IEnum<BusinessType> {

    OTHER(0, "其它"),
    QUERY(1, "查询"),
    INSERT(2, "新增"),
    UPDATE(3, "修改"),
    DELETE(4, "删除"),

    LOGIN(11, "登录"),
    LOGOUT(12, "注销"),
    GRANT(13, "授权"),
    KICK_OUT(14, "强退"),
    REPLACED(15, "被顶"),
    DISABLE(16, "封禁"),
    UNTIE_DISABLE(17, "解封"),

    EXPORT(21, "导出"),
    IMPORT(22, "导入"),
    ;
    private Integer code;
    private String desc;

    @Override
    public BusinessType getDefault() {
        return null;
    }
}
